package cn.lqz.bucttrain.enums;

/**
 * 是否中转枚举
 */
public enum TransferChoiceEnum {
    ALL(0,"全选"),
    TRANSFER(1,"中转"),
    STRAIGHT(2,"直达");
    private Integer choice;
    private String description;

    TransferChoiceEnum(Integer status, String description){
        this.choice = status;
        this.description = description;
    }

    public static TransferChoiceEnum getByChoice(Integer choice){
        for (TransferChoiceEnum value : TransferChoiceEnum.values()) {
            if (value.choice.equals(choice)){
                return value;
            }
        }
        return null;
    }

    public Integer getChoice() {
        return choice;
    }
}
